<%var obj={pageTitle:"注册信息"}%>
{{include "../header.html" obj}}
<div class=" container">
    <div class=" page-header">
        <h2 class=" text-center text-info">注册信息</h2>
    </div>
    <form class="" action=" /Admin/doRegister" method="POST" enctype="application/x-www-form-urlencoded">
        
        {{each objArr item index}}
        <%var obj={item:item}%>
        {{if item[1]=="邮箱"}}

        <div class=" form-group col-md-6 col-md-offset-3">
            <!-- <div class=" input-group col-xs-9 pull-left">
                <span class=" input-group-addon">邮箱</span>
                <input type="email" name="u_email" id="u_email" class=" form-control" >
                <span class="input-group-btn">
                    <span class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                        @qq.com
                        <span class="caret"></span>
                    </span>
                    <ul class="dropdown-menu">
                        <li><a href="javascript:;">@foxmail.com</a></li>
                        <li><a href="javascript:;">@qq.com</a></li>
                        <li><a href="javascript:;">@vip.com</a></li>
                        <li><a href="javascript:;">@163.com</a></li>
                    </ul>
                </span>
            </div>
            <div class=" pull-right">
                <button type="button" class=" btn btn-warning" id="getCode">发送验证码</button>
            </div>
            <div class=" clearfix"></div> -->
            <div class=" input-group">
                <span class=" input-group-addon">邮箱</span>
                <input type="text" name="u_email" id="u_email" class=" form-control">
                <span class=" input-group-btn">
                    <button type="button" class=" btn btn-warning" id="getCode">发送验证码</button>
                </span>
            </div>
        </div>
        {{else}}
        {{include "../bs_view/form_group_input_reg.html" obj }}
        {{/if}}
        {{/each}}
        <div class=" form-group col-md-6 col-md-offset-3">
            <button type="submit"  class=" btn btn-info btn-block">注&nbsp;&nbsp;&nbsp;册</button>
        </div>
    </form>
</div>
<script type="text/javascript">
    $(function () {
        $("#getCode").click(function () {
            $.get("/Admin/doSendCode?email=" + $("#u_email").val().trim(), function (data) {
                if (data.status == "success") {
                    layer.msg("邮件发送成功")
                } else {
                    layer.msg("邮件发送失败")
                }
            });
        });
    })
</script>

{{include "../footer.html"}}